package Classification.DecisionTree;

public class DataRow {
	String[] values;
	
	public DataRow(String[] values)
	{
		this.values = values;
	}
	
	public boolean ContainsValue(String value)
	{
		for (String val : values)
			if (val.equals(value))
				return true;
		return false;
	}
	
	public String ValueOfDecisionAttribute(int decisionAttribute)
	{
		return values[decisionAttribute];
	}
}
